<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>Embedded WeBWorK Problems</title>
	<meta name="generator" content="BBEdit 11.1" />
	<link href="https://demo.webwork.rochester.edu/webwork2_files/css/knowlstyle.css" rel="stylesheet" type="text/css" />
	<link href="https://demo.webwork.rochester.edu/webwork2_files/js/apps/MathView/mathview.css" rel="stylesheet" />

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
	<script>
	$(document).ready(function(){
		$( ".clickme" ).click(function() {
		  $( this).next().slideToggle( "slow", function() {
			// Animation complete.
		  });
		});

	   // jQuery methods go here...
	});
	</script>
	<style>
		.clickme {background-color: #ccccFF ;}
		iframe {
			margin-left: 20px;
			padding-left: 10px;
		}
	</style>
</head>
<body>

<iframe  width="600" height="600" 
src="http://127.0.0.1/webwork2/html2xml?
	&answersSubmitted=0
	&sourceFilePath=Library/Rochester/setAlgebra01RealNumbers/lhp1_31-34_mo.pg
	&problemSeed=123567890
	&displayMode=MathJax
	&courseID=daemon_course
	&userID=daemon	
	&course_password=daemon
	&outputformat=sticky">
</iframe>

<h1>Embedded WeBWorK Problems</h1>
<p>
Problem 1 -- interval notation
</p>

<div class="clickme">
  Click here to toggle problem display
</div>
<div class="wwproblem" style="display: none;">
<hr>
<iframe  width="600" height="600" 
src="http://localhost/webwork2/html2xml?
	&answersSubmitted=0
	&sourceFilePath=Library/Rochester/setAlgebra01RealNumbers/lhp1_31-34_mo.pg
	&problemSeed=123567890
	&displayMode=MathJax
	&courseID=daemon_course
	&userID=daemon	
	&course_password=daemon
	&outputformat=sticky">
</iframe>
<hr></div>
<p>
Problem 2 -- integration.  Contains a Geogebra applet
</p>

<div class="clickme">
  Click here to toggle problem display
</div>
<div class="wwproblem" style="display: none;">
<hr>
<iframe  width="800" height="600" 
src="http://localhost/webwork2/html2xml?
	&answersSubmitted=0
	&sourceFilePath=Library/FortLewis/Calc1/06-01-Antiderivatives-graphically/AF2/AF2.pg
	&problemSeed=123567890
	&displayMode=MathJax
	&courseID=daemon_course
	&userID=daemon	
	&course_password=daemon
	&outputformat=sticky">
</iframe>
<hr></div>

<p>
Problem 3 -- the pg code for this problem is embedded in the html text using base64 encoding
</p>

<div class="clickme">
 Click here to toggle problem display
</div>
<div class="wwproblem" style="display: none;">
<hr>
<iframe  width="800" height="600" 
src="https://demo.webwork.rochester.edu/webwork2/html2xml?
	&answersSubmitted=0
	&problemSeed=123567890
	&displayMode=MathJax
	&courseID=daemon_course
	&userID=daemon	
	&course_password=daemon
	&outputformat=sticky
	&problemSource=IyBERVNDUklQVElPTgojIFByb2JsZW0gZnJvbSBDYWxjdWx1cywgc2luZ2xlIHZhcmlhYmxlLCBI%0AdWdoZXMtSGFsbGV0dCBldCBhbC4sIDR0aCBlZC4KIyBXZUJXb3JLIHByb2JsZW0gd3JpdHRlbiBi%0AeSBHYXZpbiBMYVJvc2UsIDxnbGFyb3NlQHVtaWNoLmVkdT4KIyBFTkRERVNDUklQVElPTgoKIyMg%0AVGFnZ2VkIGJ5IGdsciAwMi8wOC8wOQoKIyMgREJzdWJqZWN0KENhbGN1bHVzIC0gc2luZ2xlIHZh%0AcmlhYmxlKQojIyBEQmNoYXB0ZXIoSW50ZWdyYWxzKQojIyBEQnNlY3Rpb24oUmllbWFubiBzdW1z%0AKQojIyBJbnN0aXR1dGlvbihVbml2ZXJzaXR5IG9mIE1pY2hpZ2FuLCBGb3J0IExld2lzIENvbGxl%0AZ2UpCiMjIEF1dGhvcihHYXZpbiBMYVJvc2UsIFBhdWwgUGVhcnNvbikKIyMgTUxUKHRhYmxlcykK%0AIyMgTGV2ZWwoMikKIyMgTU8oMSkKIyMgVGl0bGVUZXh0MSgnQ2FsY3VsdXMnKQojIyBBdXRob3JU%0AZXh0MSgnSHVnaGVzLUhhbGxldHQnKQojIyBFZGl0aW9uVGV4dDEoJzQnKQojIyBTZWN0aW9uMSgn%0ANS4yJykKIyMgUHJvYmxlbTEoJzcnKQojIyBUaXRsZVRleHQyKCdD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V19IGYoeCkgZHggXGFwcHJveAogICgkZHgpKCRmZGF0YVswXSArICRmZGF0YVsx%0AXSArICRmZGF0YVsyXSArICRmZGF0YVszXSArICRmZGF0YVs0XSkgPSAKICAkbGhzLgpcXQpUaGUg%0AcmlnaHQgUmllbWFubiBzdW0gaXMgClxbClxpbnRfMF57JHhkYXRhWzVdfSBmKHgpIGR4IFxhcHBy%0Ab3gKICAoJGR4KSgkZmRhdGFbMV0gKyAkZmRhdGFbMl0gKyAkZmRhdGFbM10gKyAkZmRhdGFbNF0g%0AKyAkZmRhdGFbNV0pID0gCiAgJHJocy4KXF0KVGh1cyB0aGUgYXZlcmFnZSBvZiB0aGUgdHdvIGlz%0AIFwoIFxmcmFjMTIgKCRsaHMgKyAkcmhzKSA9ICRhdmcgXCkuCgpFTkRfU09MVVRJT04KQ29udGV4%0AdCgpLT5ub3JtYWxTdHJpbmdzOwoKCkNPTU1FTlQoJ01hdGhPYmplY3QgdmVyc2lvbicpOwpFTkRE%0AT0NVTUVOVCgpOwoK%0A" base64="1" uri="1">
</iframe>
<hr></div>

<p>
Problem 4 -- PG lab.  Enter PG code to test out here.  
</p>

<div class="clickme">
  Click here to toggle problem display
</div>
<div class="wwproblem" style="display: none;">
<hr>
<iframe  width="800" height="600" 
src="https://demo.webwork.rochester.edu/webwork2/html2xml?
	&answersSubmitted=0
	&sourceFilePath=MathObjectsLabs2/lab-problem.pg
	&problemSeed=123567890
	&displayMode=MathJax
	&courseID=wikiExamples
	&userID=daemon	
	&course_password=daemon
	&outputformat=sticky">
</iframe>
<hr></div>



<p>
Problem 5 -- debug  -- This problem is useful for debugging and shows all the details of the hash returned by PG.
</p>

<div class="clickme">
  Click here to toggle problem display
</div>
<div class="wwproblem" style="display: none;">
<hr>
<iframe  width="800" height="600" 
src="https://demo.webwork.rochester.edu/webwork2/html2xml?
	&answersSubmitted=0
	&sourceFilePath=Library/Rochester/setAlgebra01RealNumbers/lhp1_31-34_mo.pg
	&problemSeed=123567890
	&displayMode=MathJax
	&courseID=daemon_course
	&userID=daemon	
	&course_password=daemon
	&outputformat=debug">
</iframe>
<hr></div>

<p>
Problem 6 -- A logic problem contributed from Montana State University.  There 
is a link "contribLibrary" in the daemon course to the "Contrib" library.  See
<a href="http://github.com/openwebwork/webwork-open-problem-library">http://github.com/openwebwork/webwork-open-problem-library</a> 
to see which problems are available in the OpenProblemLibrary and in Contrib.  You can
also use the library browser to find the problems available in the OPL.

</p>

<div class="clickme">
  Click here to toggle problem display
</div>
<div class="wwproblem" style="display: none;">
<hr>
<iframe  width="800" height="600" 
src="https://demo.webwork.rochester.edu/webwork2/html2xml?
	&answersSubmitted=0
	&sourceFilePath=contribLibrary/MontanaState/Misc.Logic/1.5A21.pg
	&problemSeed=123567890
	&displayMode=MathJax
	&courseID=daemon_course
	&userID=daemon	
	&course_password=daemon
	&outputformat=simple">
</iframe>
<hr></div>
<hr>
<div class="clickme">
  Click here to toggle problem display: (PGinfo example)
</div>
<div class="wwproblem" style="display: none;">
<hr>
<iframe  width="800" height="600" 
src="http://demo.webwork.rochester.edu/webwork2/html2xml?
	&answersSubmitted=0&
	&sourceFilePath=settesting/pgInfo.pg&
	&problemSeed=123567890&
	&problemUUID=5555&
	&displayMode=MathJax&
	&courseID=daemon_course&
	&userID=daemon&
	&course_password=daemon&
	&outputformat=simple">
</iframe>
</body>
</html>

